package br.edu.fasete.javaroad.log;

import java.util.ArrayList;
import java.util.List;

public class LogArrayList implements LogInterface {
	private List<String> messages;
	
	public LogArrayList() {
		messages = new ArrayList<String>();
	}
	
	public void appendMessage(String message) {
		messages.add(message);
	}
	
	public String getMessages () {
		String resposta = "";
		for(String s: messages)
			resposta += "\n" + s;
		return resposta;
	}
}
